package com.engine4cloud.tdf.supervision.feign;

import com.engine4cloud.tdf.common.core.constant.SecurityConstants;
import com.engine4cloud.tdf.common.core.constant.ServiceNameConstants;
import com.engine4cloud.tdf.common.core.util.R;
import com.engine4cloud.tdf.supervision.dto.result.JzdxTerminalNeedLocResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(contextId = "RemoteJzdxTerminalManageService", value = ServiceNameConstants.SUPERVISION_SERVER)
public interface RemoteJzdxTerminalManageService {

    @GetMapping(value = "/inner/cor/terminal/manage/find/{deptId}")
    R<List<JzdxTerminalNeedLocResultDTO>> findNeedLoc(@PathVariable("deptId") Long deptId, @RequestHeader(SecurityConstants.FROM) String from);
}
